<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>

	<form action="#">
		用户名: <input type="text" name="uname">
		密码：<input type="password" name="password">
		<input type="submit" value="提交">
	</form>

	<ul>
		<li><a href="">item1</a></li>
		<li><a href="">item2</a></li>
		<li><a href="">item3</a></li>
		<li><a href="">item4</a></li>
	</ul>
	
	<img src="">
	<img src="">
	<img src="">
	<img src="">

	<script type="text/javascript">
		console.log(document.links)
		console.log(document.forms)
		console.log(document.images)
		console.log(screen)
		console.log(navigator.userAgent.search(/Chrome/ ))

		// 弹出当前浏览器名称
		if( navigator.userAgent.search(/Chrome/ ) ) {
			alert('您使用的是谷歌浏览器')
		}

	</script>
</body>
</html>